package cs241.lab.world.DblLinkList;

public class Node {
	
	private World world;
	private Node nodePrevious;
	private Node nodeNext;
	
	public Node(){
		
	}
	
	public Node(World world, Node nodePrevious, Node nodeNext){
		this.world = world;
		this.nodePrevious = nodePrevious;
		this.nodeNext = nodeNext;
	}
	
	public World getWorld() {
		return world;
	}
	public void setWorld(World world) {
		this.world = world;
	}
	public Node getPrevious() {
		return nodePrevious;
	}
	public void setPrevious(Node nodePrevious) {
		this.nodePrevious = nodePrevious;
	}
	public Node getNext() {
		return nodeNext;
	}
	public void setNext(Node nodeNext) {
		this.nodeNext = nodeNext;
	}

}
